package com.jysz.certificate.persistence.dao.system;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.jysz.certificate.persistence.dao.AbstractBaseDao;
import com.jysz.certificate.persistence.model.system.Brand;
@Repository
public class BrandDao  extends AbstractBaseDao<Brand,Long>{
	public Brand brandName(String name){
		List<Brand> list=this.findBy("name", name);
		if(list!=null&&list.size()>0){
			return list.get(0);
		} 
		return null;
	}
}
